package com.alangyun.remind.repository.data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("alangyun-organ-cautions")
public class OrganDataset extends AbstractDataset {

	@XStreamAlias("import-date")
	@XStreamAsAttribute
	private Date impDate;
	@XStreamAlias("items")
	private List<OrganCaution> datas;

	public Date getImpDate() {
		return impDate;
	}

	public void setImpDate(Date impDate) {
		this.impDate = impDate;
	}

	public List<OrganCaution> getDatas() {
		return datas;
	}

	public void setDatas(List<OrganCaution> datas) {
		this.datas = datas;
	}

	public static OrganDataset create() {
		OrganDataset ret = new OrganDataset();
		ret.impDate = new Date();
		ret.datas = new ArrayList<>();
		return ret;
	}
}
